home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Bitmap / Other / BmpPart.r next >
Encoding:
Text File  |  1994-04-21  |  2.2 KB  |  110 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                BmpPart.r
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #define SystemSevenOrBetter 1            // we want the extended types
  14. #define    SystemSevenOrLater    1            // Types.r uses this variable
  15.  
  16. #include "Types.r"
  17. #include "SysTypes.r"
  18. #include "StdTypes.r"
  19. #include "StdDefs.h"
  20. #include "BmpDef.h"
  21.  
  22. //-------------------------------------------------------------------------------------
  23. // NMAP Resources
  24. //-------------------------------------------------------------------------------------
  25.  
  26. resource kNameMappings (FW_kKindCategoryMapId) {
  27.     kXMPKind,
  28.     {    /* array Types: 1 elements */
  29.         /* [1] */
  30.         kBitmapPartKind,
  31.         kXMPIsAnISOStringList
  32.         {
  33.             {    /* array ClassIDs: 1 elements */
  34.                 /* [1] */
  35.                 kXMPCategoryGraphics
  36.             }
  37.         }
  38.     }
  39. };
  40.  
  41. resource kNameMappings (FW_kEditorKindMapId) {
  42.     kXMPEditorKinds,
  43.     {    /* array Types: 1 elements */
  44.         /* [1] */
  45.         kCBitmapPartID,
  46.         kXMPIsAnISOStringList
  47.         {
  48.             {    /* array ClassIDs: 1 elements */
  49.                 /* [1] */
  50.                 kBitmapPartKind
  51.             }
  52.         }
  53.     }
  54. };
  55.  
  56. resource kNameMappings (FW_kEditorUserStringMapId) {
  57.     kXMPEditorUserString,
  58.     {    /* array Types: 1 elements */
  59.         /* [1] */
  60.         kCBitmapPartID,
  61.         kXMPIsINTLText
  62.         {
  63.             kXMPRomanScript,
  64.             kXMPEnglishLang,
  65.             kBitmapPartEditorUserString
  66.         }
  67.     }
  68. };
  69.  
  70. resource kNameMappings (FW_kKindUserStringMapId) {
  71.     kXMPKindUserString,
  72.     {    /* array Types: 1 elements */
  73.         /* [1] */
  74.         kBitmapPartKind,
  75.         kXMPIsINTLText
  76.         {
  77.             kXMPRomanScript,
  78.             kXMPEnglishLang,
  79.             kBitmapPartKindUserString
  80.         }
  81.     }
  82. };
  83.  
  84. resource kNameMappings (FW_kCategoryUserStringMapId) {
  85.     kXMPCategoryUserString,
  86.     {    /* array Types: 1 elements */
  87.         /* [1] */
  88.         kXMPCategoryVideo,
  89.         kXMPIsINTLText
  90.         {
  91.             kXMPRomanScript,
  92.             kXMPEnglishLang,
  93.             kBitmapPartCategoryUserString
  94.         }
  95.     }
  96. };
  97.  
  98. resource kNameMappings (FW_kOldMacOSTypeMapId) {
  99.     kXMPKindOldMacOSType,
  100.     {    /* array KeyList: 1 elements */
  101.         /* [1] */
  102.         kBitmapPartKind,
  103.         kXMPIsMacOSType {
  104.             kBitmapPartOSType
  105.         }
  106.     }
  107. };
  108.  
  109. include "Image.Pict" not 'ckid';
  110.